import Layout from '@/layout';
// // 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require('@/utils/util.import');
const meta = { auth: true, menuId: '/customManager' };
export default {
  path: '/customManager',
  meta: {
    ...meta,
    icon: 'setting',
    title: '客户经理管理',
  },
  component: Layout,
  children: ((basePath) => [
    {
      // /system/user
      path: `${basePath}/myCustom`,
      component: _import('customManager/myCustom'),
      name: 'myCustom',
      meta: {
        ...meta,
        title: '我的客户',
      },
    },
    {
      path: `${basePath}/myCustom/customTransfer/customTransferEnt`,
      component: _import('customManager/myCustom/customTransfer/customTransfer-ent'),
      name: 'customTransfer-ent',
      meta: {
        ...meta,
        highlightTo: `${basePath}/user`,
      },
    },
    {
      path: `${basePath}/myCustom/customTransfer/customTransferConf`,
      component: _import('customManager/myCustom/customTransfer/customTransfer-conf'),
      name: 'customTransfer-conf',
      meta: {
        ...meta,
        highlightTo: `${basePath}/user`,
      },
    },
    {
      path: `${basePath}/myCustom/customTransfer/customTransferSuc`,
      name: 'customTransfer-suc',
      component: _import('customManager/myCustom/customTransfer/customTransfer-suc'),
      meta: {
        ...meta,
        highlightTo: `${basePath}/user`,
      },
    },
    {
      path: `${basePath}/myCustom/setRelation/setRelationEnt`,
      name: 'setRelationEnt',
      component: _import('customManager/myCustom/setRelation/setRelationEnt'),
      meta: {
        ...meta,
        highlightTo: `${basePath}/user`,
      },
    },
    {
      path: `${basePath}/myCustom/removeRelation/removeRelationEnt`,
      name: 'removeRelationEnt',
      component: _import('customManager/myCustom/removeRelation/removeRelationEnt'),
      meta: {
        ...meta,
        highlightTo: `${basePath}/user`,
      },
    },
    {
      path: `${basePath}/customerClaim`,
      name: 'customerClaim',
      component: _import('customManager/customerClaim'),
      meta: {
        ...meta,
        title: '客户认领',
      },
    },
    {
      path: `${basePath}/customServeLevelApply`,
      name: 'customServeLevelApply',
      component: _import('customManager/customServeLevelApply'),
      meta: {
        ...meta,
        title: '客户认定服务等级申请',
      },
    },
    {
      path: `${basePath}/customServeLevelApply/editCustomLevel`,
      name: 'editCustomLevel',
      component: _import('customManager/customServeLevelApply/editCustomLevel'),
      meta: {
        ...meta,
        highlightTo: `${basePath}/user`,
      },
    },
  ])('/customManager'),
};
